package com.youngball.business.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 存入lighttask (redis实现)中的实体类
 * Created by liaopingzhu on 2017/1/12.
 */
public class AutoLightTask implements Serializable{

    private static final long serialVersionUID = -3178338434139587564L;

    private String uuid;

    //定时操作灯控的指令
    private String lightCommand;

    //定时操作的时间戳
    private long time;

    //定时任务时间
    private Date timeDate;

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getLightCommand() {
        return lightCommand;
    }

    public void setLightCommand(String lightCommand) {
        this.lightCommand = lightCommand;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public Date getTimeDate() {
        return timeDate;
    }

    public void setTimeDate(Date timeDate) {
        this.timeDate = timeDate;
    }

    public AutoLightTask() {
    }

    public AutoLightTask(String uuid, String lightCommand, long time) {
        this.uuid = uuid;
        this.lightCommand = lightCommand;
        this.time = time;
    }

    public AutoLightTask(String uuid, String lightCommand, long time, Date timeDate) {
        this.uuid = uuid;
        this.lightCommand = lightCommand;
        this.time = time;
        this.timeDate = timeDate;
    }
}
